#[cfg(test)]
mod tests {
    use hash_pointer::hash_pointer::pointer_hash;

    const NUM_TEST_VALUES: usize = 200;

    #[test]
    fn test_pointer_hash() {
        let mut array = [0; NUM_TEST_VALUES];

        // Check hashes are never the same
        for i in 0..NUM_TEST_VALUES {
            for j in i + 1..NUM_TEST_VALUES {
                assert_ne!(
                    pointer_hash(&array[i] as *const i32),
                    pointer_hash(&array[j] as *const i32)
                );
            }
        }
    }
}